package com.ruoyi.system.mapper;

import java.util.List;
import com.ruoyi.system.domain.TaskAttachment;
import org.apache.ibatis.annotations.Param;

/**
 * 任务附件Mapper接口
 * 
 * @author zhaoyu
 */
public interface TaskAttachmentMapper 
{
    /**
     * 查询任务附件列表
     */
    public List<TaskAttachment> selectTaskAttachmentList(TaskAttachment taskAttachment);

    /**
     * 查询任务的附件列表
     */
    public List<TaskAttachment> selectTaskAttachmentsByTaskId(@Param("taskId") Long taskId, @Param("taskType") Integer taskType);

    /**
     * 查询任务附件详情
     */
    public TaskAttachment selectTaskAttachmentById(Long attachmentId);

    /**
     * 新增任务附件
     */
    public int insertTaskAttachment(TaskAttachment taskAttachment);

    /**
     * 修改任务附件
     */
    public int updateTaskAttachment(TaskAttachment taskAttachment);

    /**
     * 删除任务附件
     */
    public int deleteTaskAttachmentById(Long attachmentId);

    /**
     * 批量删除任务附件
     */
    public int deleteTaskAttachmentByIds(Long[] attachmentIds);
} 